<?php
/**
 * @link https://www.kancloud.cn/cleverstone/ymb2
 * @copyright Copyright (c) 2020 Yii Manager Software LLC
 */

use backend\assets\HomeDynamicAsset;
use builder\helper\H5;
use builder\helper\App;

/** @var \yii\web\View $this */
HomeDynamicAsset::register($this);

$spinnerBlock = H5::renderSpinner();
$emptyBlock = $this->renderFile('@app/views/public/empty/index.php');
$rbacManager = App::rbacManager();
$this->title = '面板概览';
?>
<div class="container-fluid d-flex pt-3" ng-controller="ym2.ctrl.home.index">
    <div class="flex-grow-1 flex-shrink-0 d-flex flex-column pr-3">
        <fieldset class="layui-elem-field mb-4">
            <legend class="mb-0">
                <h5 class="f15">常用功能</h5>
            </legend>
            <div style="max-width:1150px;overflow-x:auto;" class="layui-field-box h-180 px-5 py-0 d-flex align-items-center">
                <div class="mr-5 h-100 d-flex flex-column justify-content-center">
<?php if ($rbacManager->permissionValidate('admin/index')): ?>
                    <a href="/admin/index" target="_blank" class="flex-grow-1 flex-shrink-0 d-flex flex-column justify-content-center align-items-center">
                        <img src="/media/image/home/shortcut_admins.svg" width="48" ym2-bootstrap-plugin="tooltip" data-toggle="tooltip" data-placement="top" title="管理员列表" alt>
                        <span class="layui-font-black f15 mt-2">管理员</span>
                    </a>
<?php endif; ?>
<?php if ($rbacManager->permissionValidate('group/index')): ?>
                    <a href="/group/index" target="_blank" class="flex-grow-1 flex-shrink-0 d-flex flex-column justify-content-center align-items-center">
                        <img src="/media/image/home/shortcut_groups.svg" width="48" ym2-bootstrap-plugin="tooltip" data-toggle="tooltip" data-placement="top" title="管理组列表" alt>
                        <span class="layui-font-black f15 mt-2">管理组</span>
                    </a>
<?php endif; ?>
                </div>
                <div class="mr-5 h-100 d-flex flex-column justify-content-center">
<?php if ($rbacManager->permissionValidate('admin/index')): ?>
                        <a href="/admin/index" target="_blank" class="flex-grow-1 flex-shrink-0 d-flex flex-column justify-content-center align-items-center">
                            <img src="/media/image/home/shortcut_users.svg" width="48" ym2-bootstrap-plugin="tooltip" data-toggle="tooltip" data-placement="top" title="会员列表" alt>
                            <span class="layui-font-black f15 mt-2">会员</span>
                        </a>
<?php endif; ?>
<?php if ($rbacManager->permissionValidate('group/index')): ?>
                        <a href="/group/index" target="_blank" class="flex-grow-1 flex-shrink-0 d-flex flex-column justify-content-center align-items-center">
                            <img src="/media/image/home/shortcut_orders.svg" width="48" ym2-bootstrap-plugin="tooltip" data-toggle="tooltip" data-placement="top" title="订单列表" alt>
                            <span class="layui-font-black f15 mt-2">订单</span>
                        </a>
<?php endif; ?>
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field mb-4">
            <legend>
                <h5 class="layui-form f15">
                    <select layui-form-render lay-filter="ym2_form_select" ng-change="selectUserIncrItem()" ng-model="userIncrItem">
                        <option value="1">用户日新增统计</option>
                        <option value="30">用户月新增统计</option>
                    </select>
                </h5>
            </legend>
            <div class="position-relative layui-field-box pt-0 h-300">
                <div ng-show="userIncrStatisticsSpinnerShow" class="position-absolute fixed-top fixed-bottom d-flex align-items-center justify-content-center">
                    <?= $spinnerBlock ?>
                </div>
                <div ng-hide="userIncrStatisticsIsEmpty" id="G2-userIncrStatistics"></div>
                <div ng-show="userIncrStatisticsIsEmpty" class="position-absolute fixed-top fixed-bottom d-flex align-items-center justify-content-center" style="z-index:-1;">
                    <?= $emptyBlock ?>
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field mb-4">
            <legend class="d-flex align-items-center">
                <h5 class="layui-form f15">
                    <select layui-form-render lay-filter="ym2_form_select" ng-change="selectOrderIncrItem()" ng-model="orderIncrItem">
                        <option value="1">订单日新增统计</option>
                        <option value="30">订单月新增统计</option>
                        <option value="g1">订单日增(分组)</option>
                        <option value="g30">订单月增(分组)</option>
                    </select>
                </h5>
            </legend>
            <div class="position-relative layui-field-box pt-0 h-300">
                <div ng-show="orderIncrStatisticsSpinnerShow" class="position-absolute fixed-top fixed-bottom d-flex align-items-center justify-content-center">
                    <?= $spinnerBlock ?>
                </div>
                <div ng-hide="orderIncrStatisticsIsEmpty" id="G2-orderIncrStatistics"></div>
                <div ng-show="orderIncrStatisticsIsEmpty" class="position-absolute fixed-top fixed-bottom d-flex align-items-center justify-content-center" style="z-index:-1;">
                    <?= $emptyBlock ?>
                </div>
            </div>
        </fieldset>
    </div>
    <div class="w-500 d-flex flex-column">
        <!--数据统计-->
        <fieldset class="layui-elem-field mb-4">
            <legend><h5 class="f15">数据统计</h5></legend>
            <div class="position-relative layui-field-box pt-1 text-default overflow-auto" style="height: 294px;">
                <div ng-show="dataStatisticsSpinnerShow" class="position-absolute fixed-top fixed-bottom d-flex align-items-center justify-content-center">
                    <?= $spinnerBlock ?>
                </div>
                <div class="row">
                    <div class="col-6 pl-3 pr-1 py-2 user-select-none">
                        <div class="bg-img2 card border-0 rounded-12 h-100 p-3">
                            <div class="d-flex align-items-start">
                                <div class="mr-3 d-flex justify-content-center">
                                    <div class="icon-coat" style="padding:0;background:transparent;">
                                        <svg class="group-icon" xmlns="http://www.w3.org/2000/svg" width="1.5em" height="1.5em" fill="currentColor" viewBox="0 0 1024 1024">
                                            <path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#7c55ff" opacity=".149"></path>
                                            <path d="M259.677091 652.101818c0.325818 0-7.121455-8.680727 0-14.382545 4.421818-3.677091 38.097455-34.955636 101.096727-93.835637 3.328-3.141818 7.098182-5.818182 11.170909-7.912727 4.049455-2.094545 8.517818-3.188364 13.079273-3.188364h180.689455s25.250909 2.001455 24.901818 25.390546c-0.302545 14.754909-9.378909 28.090182-24.552728 31.441454-13.591273 2.327273-45.661091 5.003636-68.608 6.656-8.448 0.698182 0 6.353455 0 6.353455l21.969455 16.128c5.259636 3.863273 11.636364 5.957818 18.152727 5.957818h84.293818c6.632727 0 13.079273-2.164364 18.385455-6.144 20.992-15.592727 41.658182-31.604364 62.021818-48.011636 44.962909-33.396364 62.091636 0 62.091637 0s5.538909 12.032-0.302546 18.734545c-15.872 14.848-53.015273 49.338182-111.453091 103.377455a30.72 30.72 0 0 1-13.986909 7.377454l0.698182-0.139636c-4.817455 1.093818-9.774545 1.629091-14.708364 1.629091-126.976-0.209455-195.025455-0.162909-204.125091 0-13.917091 0-23.621818 9.402182-23.621818 9.402182l-34.909091 31.418182c-14.266182 12.032-22.039273 0-22.039272 0l-80.244364-90.251637z m333.358545-142.312727a62.440727 62.440727 0 0 0-27.345454-7.68H536.203636c1.28-2.257455 0-4.840727 0-7.447273v-31.650909h61.858909v-30.673454H536.203636v-26.78691h61.858909v-30.72H542.952727l50.967273-50.850909-10.961455-10.984727-10.705454-10.705454-50.781091 50.362181-47.080727-50.269091-10.519273 10.472728-11.194182 11.217454 47.709091 50.781091h-56.599273v30.696727h61.696v26.763637H443.810909v30.72h61.696v31.604363c0 2.746182-1.186909 5.259636 0 7.493819h-106.914909a153.506909 153.506909 0 1 1 216.482909 29.486545 53.853091 53.853091 0 0 0-22.039273-21.806545z" fill="#7c55ff"></path>
                                        </svg>
                                    </div>
                                </div>
                                <div class="flex-fill">
                                    <h5 class="f15 layui-font-black mb-n1">
                                        <span>收入金额&emsp;</span>
                                        <i ng-click="isDisplayCapital = !isDisplayCapital" class="cp bi" ng-class="isDisplayCapital ? 'bi-eye-slash' : 'bi-eye'"></i>
                                    </h5>
                                    <p ng-hide="isDisplayCapital" class="layui-font-30 layui-font-black">***</p>
                                    <p ng-show="isDisplayCapital" class="layui-font-30 layui-font-black">
                                        <span>{{totalAmount}}</span>
                                        <span class="f12 layui-font-black">{{totalAmount_unit}}元</span>
                                    </p>
                                </div>
                            </div>
                            <div class="d-flex align-items-center px-3 pt-2">
                                <h5 class="f15 mb-0 layui-font-black">今日收入</h5>
                                <p ng-hide="isDisplayCapital" class="pl-2 f22 line-height22 layui-font-black">***</p>
                                <p ng-show="isDisplayCapital" class="pl-2 f22 line-height22 layui-font-black">
                                    <span>{{todayAmount}}</span>
                                    <span class="f12 layui-font-black">{{todayAmount_unit}}元</span>
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="col-6 pl-1 pr-3 py-2">
                        <div class="bg-img1 card border-0 rounded-12 h-100 p-3">
                            <div class="d-flex align-items-start">
                                <div class="mr-3 d-flex justify-content-center">
                                    <div class="icon-coat" style="padding:0;background:transparent;">
                                        <svg class="group-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1.5em" height="1.5em" viewBox="0 0 1024 1024">
                                            <path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#61af06" opacity=".149"></path>
                                            <path d="M407.016727 562.222545c-2.513455-1.117091-4.189091-1.954909-4.189091-1.954909l-0.279272-25.413818s10.053818-7.540364 13.405091-31.837091c6.423273 1.675636 8.378182-7.261091 8.936727-13.125818 0.279273-5.585455 3.630545-23.458909-3.909818-21.783273 1.675636-11.729455 2.792727-22.341818 2.234181-28.206545-1.954909-19.828364-15.639273-40.494545-50.548363-41.890909-29.602909 1.396364-48.872727 22.341818-50.827637 41.890909-0.558545 5.585455 0.558545 16.197818 2.234182 28.206545-7.819636-1.675636-4.468364 16.197818-4.189091 21.783273 0.279273 5.864727 2.513455 15.080727 8.936728 13.125818 3.072 24.017455 13.405091 31.837091 13.405091 31.837091l-0.279273 25.693091s-6.423273 3.909818-33.512727 15.080727-18.711273 2.234182-40.773819 13.125819C232.727273 606.068364 232.727273 653.265455 232.727273 653.265455c0 7.261091 5.864727 12.846545 13.125818 12.846545h63.115636c0-44.125091 39.377455-82.664727 98.024728-103.889455z m238.498909 29.60291c-28.206545-13.963636-17.314909-3.351273-51.665454-17.31491-34.350545-14.242909-42.728727-18.711273-42.728727-18.711272l-0.279273-32.395637s12.846545-9.774545 17.035636-40.494545c8.098909 2.234182 10.891636-9.495273 11.170909-16.756364 0.558545-7.261091 4.747636-29.602909-5.026909-27.648 1.954909-15.080727 3.630545-28.485818 2.792727-35.746909-2.513455-25.134545-20.107636-51.665455-64.512-53.341091-37.701818 1.954909-62.277818 28.206545-64.791272 53.341091-0.837818 7.261091 0.837818 20.666182 2.792727 35.746909-9.774545-1.954909-5.585455 20.386909-5.306182 27.648 0.558545 7.540364 3.072 19.269818 11.170909 16.756364 3.909818 30.72 17.035636 40.494545 17.035637 40.494545l-0.279273 32.674909s-8.098909 5.026909-42.728727 18.990546c-34.350545 14.242909-23.738182 3.072-51.665455 16.756364-44.404364 21.783273-44.404364 82.106182-44.404364 82.106181 0 9.216 7.540364 16.477091 16.756364 16.477091h322.280727c9.216 0 16.756364-7.261091 16.756364-16.477091 0 0 0-60.322909-44.404364-82.106181zM791.272727 652.986182s0-47.197091-34.909091-64.512c-22.062545-10.891636-13.684364-1.954909-40.773818-13.125818-27.089455-11.170909-33.512727-15.080727-33.512727-15.080728l-0.279273-25.693091s10.053818-7.819636 13.405091-31.83709c6.423273 1.954909 8.378182-7.261091 8.936727-13.125819 0.279273-5.585455 3.630545-23.458909-4.189091-21.783272 1.675636-11.729455 2.792727-22.341818 2.234182-28.206546-1.954909-19.828364-21.224727-40.494545-50.827636-41.890909-34.909091 1.396364-48.593455 22.062545-50.548364 41.890909-0.558545 5.585455 0.558545 16.197818 2.234182 28.206546-7.819636-1.675636-4.468364 16.197818-3.909818 21.783272 0.279273 5.864727 2.513455 15.080727 8.936727 13.125819 3.072 24.017455 13.405091 31.837091 13.405091 31.83709l-0.279273 25.413819s-1.396364 0.837818-4.189091 1.954909c58.647273 21.504 98.304 59.764364 98.304 103.889454h63.115637c6.981818 0.279273 12.846545-5.585455 12.846545-12.846545z" fill="#61af06"></path>
                                        </svg>
                                    </div>
                                </div>
                                <div class="flex-fill">
                                    <h5 class="f15 layui-font-black mb-n1">用户数量</h5>
                                    <p class="layui-font-30 layui-font-black">{{totalUserCount}}</p>
                                </div>
                            </div>
                            <div class="d-flex align-items-center justify-content-between">
                                <div class="d-flex flex-column justify-content-center align-items-center pl-2 pt-1">
                                    <h6 class="mb-0 layui-font-black"><i class="f12 layui-font-red bi bi-arrow-up"></i>今日</h6>
                                    <p class="layui-font-16 layui-font-black">{{newUserCount}}</p>
                                </div>
                                <div class="d-flex flex-column justify-content-center align-items-center pt-1">
                                    <h6 class="mb-0 layui-font-black">冻结</h6>
                                    <p class="layui-font-16 layui-font-black">{{abnormalUserCount}}</p>
                                </div>
                                <div class="d-flex flex-column justify-content-center align-items-center pr-2 pt-1">
                                    <h6 class="mb-0 layui-font-black">正常</h6>
                                    <p class="layui-font-16 layui-font-black">{{normalUserCount}}</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-6 pl-3 pr-1 py-2">
                        <div class="bg-img4 card border-0 rounded-12 h-100 p-3">
                            <div class="d-flex align-items-start">
                                <div class="mr-3 d-flex justify-content-center">
                                    <div class="icon-coat" style="background-color:transparent;padding:0;">
                                        <svg class="group-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1.5em" height="1.5em" fill="currentColor" viewBox="0 0 1024 1024">
                                            <path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#0074ff" opacity=".149"></path>
                                            <path d="M674.909091 325.818182a23.272727 23.272727 0 0 1 23.272727 23.272727v325.818182a69.818182 69.818182 0 0 1-69.818182 69.818182h-186.181818a69.818182 69.818182 0 0 1-69.818182-69.818182V349.090909a23.272727 23.272727 0 0 1 23.272728-23.272727h279.272727z m-128 209.454545h-116.363636a11.636364 11.636364 0 1 0 0 23.272728h116.363636a11.636364 11.636364 0 1 0 0-23.272728z m93.090909-69.818182h-209.454545a11.636364 11.636364 0 0 0 0 23.272728h209.454545a11.636364 11.636364 0 1 0 0-23.272728z m0-69.818181h-209.454545a11.636364 11.636364 0 0 0 0 23.272727h209.454545a11.636364 11.636364 0 1 0 0-23.272727z" fill="#0074ff"></path>
                                            <path d="M605.090909 256a23.272727 23.272727 0 0 1 23.272727 23.272727v23.272728H372.363636a23.272727 23.272727 0 0 0-23.109818 20.549818L349.090909 325.818182v345.134545A69.841455 69.841455 0 0 1 302.545455 605.090909V279.272727a23.272727 23.272727 0 0 1 23.272727-23.272727h279.272727z" fill="#5EAAFF"></path>
                                        </svg>
                                    </div>
                                </div>
                                <div class="flex-fill">
                                    <h5 class="f15 layui-font-black mb-n1">订单数量</h5>
                                    <p>
                                        <span class="layui-font-30 layui-font-black">{{orderCount}}</span>
                                        <span class="f12 layui-font-black">{{orderCount_unit}}</span>
                                    </p>
                                </div>
                            </div>
                            <div class="d-flex align-items-center justify-content-between">
                                <div class="d-flex flex-column justify-content-center align-items-center pl-3 pt-1">
                                    <h6 class="mb-0 layui-font-black">待支付</h6>
                                    <p>
                                        <span class="layui-font-16 layui-font-black">{{orderWaitPayCount}}</span>
                                        <span class="f12 layui-font-black">{{orderWaitPayCount_unit}}</span>
                                    </p>
                                </div>
                                <div class="d-flex flex-column justify-content-center align-items-center pt-1">
                                    <h6 class="mb-0 layui-font-black">待发货</h6>
                                    <p>
                                        <span class="layui-font-16 layui-font-black">{{orderWaitPostCount}}</span>
                                        <span class="f12 layui-font-black">{{orderWaitPostCount_unit}}</span>
                                    </p>
                                </div>
                                <div class="d-flex flex-column justify-content-center align-items-center pr-2 pt-1">
                                    <h6 class="mb-0 layui-font-black">待使用</h6>
                                    <p>
                                        <span class="layui-font-16 layui-font-black">{{orderWaitUseCount}}</span>
                                        <span class="f12 layui-font-black">{{orderWaitUseCount_unit}}</span>
                                    </p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-6 pl-1 pr-3 py-2">
                        <div class="bg-img3 card border-0 rounded-12 h-100 p-3">
                            <div class="d-flex align-items-start">
                                <div class="mr-3 d-flex justify-content-center">
                                    <div class="icon-coat" style="background-color:transparent;padding:0;">
                                        <svg class="group-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1.5em" height="1.5em" fill="currentColor" viewBox="0 0 1024 1024">
                                            <path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#ff9f3f" opacity=".149"></path>
                                            <path d="M512 349.090909c65.792-0.372364 110.545455 32.162909 110.545455 32.162909 23.04-7.959273 39.098182-26.926545 39.098181-49.291636 0-30.231273-28.625455-53.294545-62.626909-53.294546a60.509091 60.509091 0 0 0-21.527272 3.956364 44.753455 44.753455 0 0 0-7.098182 3.351273c-1.163636 0.465455-3.723636-0.046545-4.421818-0.954182a72.610909 72.610909 0 0 0-12.241455-13.614546c-10.775273-9.378909-23.645091-15.197091-38.283636-15.19709s-27.392 5.818182-38.283637 15.220363a70.004364 70.004364 0 0 0-11.962182 13.335273c-1.000727 1.163636-3.560727 1.768727-4.421818 1.326545a49.780364 49.780364 0 0 0-7.307636-3.467636 60.276364 60.276364 0 0 0-21.527273-3.956364c-34.001455 0-62.603636 23.133091-62.603636 53.294546 0 19.176727 11.776 35.793455 29.556363 45.172363 0.046545 0 47.313455-27.694545 113.105455-28.043636z m0 23.482182c69.818182 0 112.989091 27.461818 112.989091 27.461818 1.675636 1.163636 3.072 2.210909 4.957091 3.630546 12.497455 9.681455 24.994909 20.782545 36.677818 33.210181C700.718545 473.157818 721.454545 513.326545 721.454545 556.683636c0 73.821091-28.974545 125.370182-79.988363 156.090182-37.562182 22.621091-83.968 32.186182-131.490909 32.186182-113.384727 0-207.429818-60.672-207.429818-188.276364 0-46.010182 20.573091-87.435636 54.528-123.694545 11.636364-12.497455 24.110545-23.482182 36.608-32.884364 2.048-1.582545 3.956364-2.932364 5.72509-4.235636 0 0 42.775273-23.272727 112.593455-23.272727z m55.482182 210.641454h-108.125091a17.175273 17.175273 0 0 0 0 34.373819h70.213818A17.175273 17.175273 0 1 0 553.890909 641.861818l24.296727-24.296727a17.105455 17.105455 0 0 0 4.887273-9.937455 17.175273 17.175273 0 0 0-15.569454-24.436363z m-74.24-93.719272a17.175273 17.175273 0 0 0-16.686546 4.677818l-24.296727 24.296727a16.779636 16.779636 0 0 0-2.257454 2.792727 17.175273 17.175273 0 0 0 9.355636 31.581091h108.125091a17.175273 17.175273 0 1 0 0-34.373818h-66.629818a17.175273 17.175273 0 0 0-7.586909-28.974545z" fill="#ff9f3f"></path>
                                        </svg>
                                    </div>
                                </div>
                                <div class="flex-fill">
                                    <h5 class="f15 layui-font-black mb-n1">售后数量</h5>
                                    <p>
                                        <span class="layui-font-30 layui-font-black">{{aftermarketCount}}</span>
                                        <span class="f12 layui-font-black">{{aftermarketCount_unit}}</span>
                                    </p>
                                </div>
                            </div>
                            <div class="d-flex align-items-center justify-content-between pt-1">
                                <div class="d-flex flex-column justify-content-center align-items-center pl-3">
                                    <h6 class="mb-0 layui-font-black">申请中</h6>
                                    <p>
                                        <span class="layui-font-16 layui-font-black">{{aftermarketApplyingCount}}</span>
                                        <span class="f12 layui-font-black">{{aftermarketApplyingCount_unit}}</span>
                                    </p>
                                </div>
                                <div class="d-flex flex-column justify-content-center align-items-center pr-3">
                                    <h6 class="mb-0 layui-font-black">待确认</h6>
                                    <p>
                                        <span class="layui-font-16 layui-font-black">{{aftermarketWaitReceiveCount}}</span>
                                        <span class="f12 layui-font-black">{{aftermarketWaitReceiveCount_unit}}</span>
                                    </p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
        <!--操作记录-->
        <fieldset class="layui-elem-field mb-4">
            <legend>
                <h5 class="f15">操作记录（今日）<sup class="f12">共{{tlog.length}}条</sup></h5>
            </legend>
            <div class="position-relative layui-field-box pt-0 text-default h-250 overflow-auto">
                <div ng-show="tlogIsEmpty" class="w-100 h-100 d-flex align-items-center justify-content-center">
                    <?= $emptyBlock ?>
                </div>
                <div ng-show="tlogSpinnerShow" class="position-absolute fixed-top fixed-bottom d-flex align-items-center justify-content-center">
                    <?= $spinnerBlock ?>
                </div>
                <table ng-hide="tlogIsEmpty" class="layui-table border-0 my-0" lay-skin="line">
                    <tbody>
                    <tr ng-repeat="item in tlog track by item.id">
                        <td class="w-50px">
                            {{ item.created_at }}
                        </td>
                        <td class="w-80">
                            <p class="w-80 text-truncate">
                                {{ item.admin ? item.admin.username : "系统机器人" }}
                            </p>
                        </td>
                        <td class="w-180">
                            <p class="w-180 text-truncate">
                                {{ item.category }}
                            </p>
                        </td>
                        <td class="cp w-20 hover-bright" ng-click="showTlogDetail($event, item)">
                            <i title="查看更多" class="icon-more bi bi-three-dots f15"></i>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </fieldset>
        <!--应用异常日志-->
        <fieldset class="layui-elem-field mb-4">
            <legend>
                <h5 class="f15">应用异常日志（今日）<sup class="f12">共{{appLog.length}}条</sup></h5>
            </legend>
            <div class="position-relative layui-field-box pt-0 text-default h-250 overflow-auto">
                <div ng-show="appLogIsEmpty" class="w-100 h-100 d-flex align-items-center justify-content-center">
                    <?= $emptyBlock ?>
                </div>
                <div ng-show="appLogSpinnerShow" class="position-absolute fixed-top fixed-bottom d-flex align-items-center justify-content-center">
                    <?= $spinnerBlock ?>
                </div>
                <table ng-hide="appLogIsEmpty" class="layui-table border-0 my-0" lay-skin="line">
                    <tbody>
                    <tr ng-repeat="item in appLog track by item.id">
                        <td class="w-50px">
                            {{ item.created_at }}
                        </td>
                        <td class="w-280">
                            <p class="w-280 text-truncate">
                                {{ item.category + "失败" }}
                            </p>
                        </td>
                        <td class="cp w-20 hover-bright" ng-click="showAppLogDetail(item.id)">
                            <i title="查看更多" class="icon-more bi bi-three-dots f15"></i>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </fieldset>
    </div>
</div>
